<?php
/**
 * Author:   tangxiaowen
 * Email:    846506584@qq.com
 * Date:     2019/3/12 0012
 * Describe: 系统管理类
 */

namespace app\api\controller;

use think\Controller;

class System extends Controller
{
    /**
     * 获取系统信息
     * @return array
     */
    public function getSystemInfo()
    {
        $systemAllData = cache('systemAllData');
        if(!$systemAllData){
            $systemAllData = db('sys_basicinfo')->find();
            cache('systemAllData',$systemAllData,1);
            $systemAllData = cache('systemAllData');
        }
        return $systemAllData;
    }

}